<template>
	<!-- title部分 -->
	<view class="title">
		<view class="title_leftbox" @click="goToWode">
			<image class="title_leftbox_image_fanhui" src="../../static/返回.png"></image>
		</view>
		<view class="title_middlebox">
			<view class="title_middlebox_text">设置</view>
		</view>
		<view class="title_rightbox">
			<view class="title_rightbox_text"></view>
		</view>
	</view>

	<!-- shezhi部分 -->
	<view class="shezhibox">
		<view class="shezhibox_textimgbox">
			<view class="shezhibox_textimgbox_text1">清除缓存</view>
			<image class="shezhibox_textimgbox_img" src="../../static/xiangyoujiantou.png"></image>
		</view>
		<view class="shezhibox_textimgbox" @click="goToYijianfankui">
			<view class="shezhibox_textimgbox_text1">建议反馈</view>
			<image class="shezhibox_textimgbox_img" src="../../static/xiangyoujiantou.png"></image>
		</view>
		<view class="shezhibox_textimgbox">
			<view class="shezhibox_textimgbox_text1">当前版本</view>
			<view class="shezhibox_textimgbox_text2">V105</view>
		</view>
		<view class="shezhibox_textimgbox" @click="goToQiehuanfuwuqi">
			<view class="shezhibox_textimgbox_text1" >切换线路</view>
			<image class="shezhibox_textimgbox_img" src="../../static/xiangyoujiantou.png"></image>
		</view>
	</view>
	<!-- button部分 -->
	<view class="buttonbox" @click="goToLogin">
		<button >退出当前账号</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goToWode() {
				// 在tabbar中使用uniapp的switchTab方法跳转
				uni.switchTab({
					url: '/pages/wode/wode', // 我的路径
				});
			},
			goToYijianfankui() {
				// 使用uni-app的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/yijianfankui/yijianfankui',
				});
			},
			goToQiehuanfuwuqi() {
				// 使用uni-app的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/qiehuanfuwuqi/qiehuanfuwuqi',
				});
			},
			goToLogin() {
				// 使用uni-app的navigateTo方法跳转
				uni.navigateTo({
					url: '/pages/login/login'
				});
			},
		}
	}
</script>

<style>
	/* 以下是title部分样式 */
	.title {
		background-color: rgb(226, 50, 52);
		display: flex;
		align-items: center;
		justify-content: space-between;
		/* 使左右盒子分别位于两侧 */
		padding: 2%;
	}

	.title_leftbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使图标居中 */
	}

	.title_leftbox_image_fanhui {
		width: 17px;
		height: 17px;
	}

	.title_middlebox {
		flex-grow: 1;
		/* 使中间盒子占据剩余空间 */
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_middlebox_text {
		font-size: 15px;
		color: white;
		font-weight: 900;
	}

	.title_rightbox {
		display: flex;
		align-items: center;
		justify-content: center;
		/* 使文本居中 */
	}

	.title_rightbox_text {
		color: white;
	}


	/*shezhi部分*/
	.shezhibox {
		padding: 2%;
	}

	.shezhibox_textimgbox {
		display: flex;
		align-items: center;
	}

	.shezhibox_textimgbox_text1 {
		font-size: 15px;
		color: #606266;
		flex: 1;
		padding: 4% 0;
	}

	.shezhibox_textimgbox_text2 {
		font-size: 15px;
		color: #909399;
	}

	.shezhibox_textimgbox_img {
		width: 15px;
		height: 15px;
		display: block;
	}

	button {
		margin: 18px;
		background: #e23234;
		opacity: 1;
		border-radius: 8px;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>
